/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package air.eb;

/**
 *
 * @author Keith Augustsson
 */
public class OtherFlight {

    private String flight;
    private String airline;

    public OtherFlight() {
    }

    public OtherFlight(String flight, String airline) {
        this.flight = flight;
        this.airline = airline;
    }

    public String getAirline() {
        return airline;
    }

    public String getFlight() {
        return flight;
    }

    public void setAirline(String airline) {
        this.airline = airline;
    }

    public void setFlight(String flight) {
        this.flight = flight;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final OtherFlight other = (OtherFlight) obj;
        if ((this.flight == null) ? (other.flight != null) : !this.flight.equals(other.flight)) {
            return false;
        }
        if ((this.airline == null) ? (other.airline != null) : !this.airline.equals(other.airline)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 97 * hash + (this.flight != null ? this.flight.hashCode() : 0);
        hash = 97 * hash + (this.airline != null ? this.airline.hashCode() : 0);
        return hash;
    }
}
